import request from '@/utils/request'

// 查询用户协议管理列表
export function listUseragreement(query) {
  return request({
    url: '/system/useragreement/list',
    method: 'get',
    params: query
  })
}

// 查询用户协议管理详细
export function getUseragreement(id) {
  return request({
    url: '/system/useragreement/' + id,
    method: 'get'
  })
}

// 新增用户协议管理
export function addUseragreement(data) {
  return request({
    url: '/system/useragreement',
    method: 'post',
    data: data
  })
}

// 修改用户协议管理
export function updateUseragreement(data) {
  return request({
    url: '/system/useragreement',
    method: 'put',
    data: data
  })
}

// 删除用户协议管理
export function delUseragreement(id) {
  return request({
    url: '/system/useragreement/' + id,
    method: 'delete'
  })
}
